import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './styles/index.scss'
import * as ElIcons from '@element-plus/icons-vue'
import '@/styles/theme/index.scss'
// 国际化
import useVueI18n from '@/locales/index'
import useVuePinia from '@/store/index'
// import useQiankun from './actions'

// 注册微应用
// const app = registerMicroApps(apps)
import 'amfe-flexible/index.js'

const app = createApp(App)

useVueI18n(app)
useVuePinia(app)
// useQiankun()
app.use(router)

for (const name in ElIcons) {
  app.component(name, (ElIcons as any)[name])
}

app.mount('#app')
